package cn.com.bsoft.mobile.model

import com.fasterxml.jackson.annotation.JsonFormat
import java.util.*

class AppMessageRsp{
    var messageID:String? = null
    var title:String? = null
    var contentType:String? = null
    var readStatus:Int = 0
    var messageBody:String = ""
    var extra:String? = ""

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    var createDate: Date = Date()
}

class AppVersionRsp{
    var appID:String? = null
    var type:DeviceType? = null
    var version:String? = null
    var describe:String? = null
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    var createDate:Date? = null
    var enable:Boolean? = null
    var url:String? = null
    var appURL:String? = null
    var archiveLength:Long? = null
    //var patch:String? = null
    var changeLog:String? = null
}

class ArchiveRsp{
    var archiveID:String? = null
    var archiveURL:String? = null
}

class FeedbackRsp{
    var id:String? = null
    var username:String? = null
    var body:String? = null
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    var createDate:Date? = null

    var archives:MutableList<String> = LinkedList()
}